package com.example.demo.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.example.demo.dao.T_box_dataDictionaryMapper;
import com.example.demo.dao.T_box_dataDictionaryOneMapper;
import com.example.demo.domain.T_box_dataDictionary;
import com.example.demo.domain.T_box_dataDictionaryOne;
import com.example.demo.services.T_box_dataDictionaryService;

@Service
@Transactional
public class T_box_dataDictionaryServiceImpl implements T_box_dataDictionaryService{

	@Autowired
	private T_box_dataDictionaryMapper t_box_dataDictionaryMapper;
	
	@Autowired
	private T_box_dataDictionaryOneMapper t_box_dataDictionaryOneMapper;
	
	/**
	 * 根据名称查询T_box配置信息
	 * @param id
	 * @return T_box_dataDictionary
	 */
	public List<T_box_dataDictionary> selectByname(String name) {
		return t_box_dataDictionaryMapper.selectByname(name);
	}
	

	/**
	 * 查询所有常规变量配置信息 
	 * @return T_box_dataDictionary
	 */
	public List<T_box_dataDictionary> selectALL() {
		return t_box_dataDictionaryMapper.selectALL();
	}
	
	/**
	 * 查询所有常规变量配置信息 
	 * @return T_box_dataDictionary
	 */
	public List<T_box_dataDictionaryOne> selectALLOne() {
		return t_box_dataDictionaryOneMapper.selectALLOne();
	}
}
